export interface SshServerInfo {
    addr?: string;
    username?: string;
    usePrivKey?: boolean;
    password?: string;
    privKeyPath?: string;
    privKeyPassword?: string;
}

//支持mysql和postgres
export interface SqlServerInfo {
    driver?: "mysql" | "postgres";
    addr?: string;
    username?: string;
    password?: string;
}

export interface MongoServerInfo {
    addrs?: string[];
    username?: string;
    password?: string;
    authSource?: string;
    authMechanism?: string;
    replicaSet?: string;
    defaultDb?: string;
}

export interface RedisServerInfo {
    addrs?: string[];
    dbId?: number;
    username?: string;
    password?: string;
}

export interface GrpcServerInfo  {
    addr?: string;
    rootPath?: string;
    importPathList?: string[];
    secure?: boolean;
}